﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using X23.Application.Dto;

namespace X23.Application.RoleManagement.Dto
{
    /// <summary>
    /// 权限菜单树
    /// </summary>
    public class RoleMenuTreeDto : IntDto
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 菜单按钮树
        /// </summary>
        public List<MenuButtonTreeDto> MenuButtonTreeDtoList { get; set; }
    }
    /// <summary>
    /// 菜单按钮树
    /// </summary>
    public class MenuButtonTreeDto : IntDto
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 按钮Code
        /// </summary>
        public List<string> ButtonCodeList { get; set; }

        /// <summary>
        /// Children
        /// </summary>
        public List<MenuButtonTreeDto> Children { get; set; }
    }
}
